# import json
# a={"name":"chen","age":12}
# m = json.dumps(a)
# print(m)
# print(type(m))
# b=json.loads(m)
# print(type(b))

#需求： 五岁以下，三岁以上的小孩子，唱一遍儿歌
#       三岁以下的孩子唱两遍儿歌
# def tuzi():
#     print("小兔子乖乖")
#     print("把门开开")
# age=int(input("请输入年龄"))
# if age>=3 and age<=5:
#     tuzi()
# elif age<3:
#     for i in range(2):
#         tuzi()


#1
# def num(numbers):
#     list1=[]
#     for i in range(len(numbers)):
#         if i %2 !=0:
#             list1.append(numbers[i])
#             return list1
# print(num([1,2,3,4]))

#2
#写函数,判断用户传入的对象(string,list,tuple)长度是否大于5
# def a(b):
#     if type(b)==str:
#         print("字符串")
#         if len(b)>5:
#             print("长度大于5")
#     elif type(b)==list:
#         print("列表")
#         if len(b)>5:
#             print("长度大于5")
#     elif type(b)==tuple:
#         print("元组")
#         if len(b)>5:
#             print("长度大于5")
#         else:
#          print("没有大于5")

#
# def islength(ele):
#     if type(ele) == str:
#         print(f"是字符串")
#         if len(ele) > 5:
#             print(f"长度大于5")
#         else:
#             print("长度没有大于5")
#     elif type(ele) == list:
#         print("是列表")
#         if len(ele) > 5:
#             print("长度大于5")
#         else:
#             print("长度没有大于5")
#     elif type(ele) == tuple:
#         print("是元组对象")
#         if len(ele) > 5:
#             print("长度大于5")
#         else:
#             print("长度没有大于5")



